package request

// 创建订单
type CreateOrder struct {
	AddressId   int32   `json:"address_id" form:"address_id" binding:"required"`
	UserId      int32   `json:"user_id" form:"user_id" binding:"required"`
	GoodsId     int32   `json:"goods_id" form:"goods_id" binding:"required"`
	GoodsNum    int32   `json:"goods_num" form:"goods_num" binding:"required"`
	GoodsName   string  `json:"goods_name" form:"goods_name" binding:"required"`
	GoodsPrice  int32   `json:"goods_price" form:"goods_price" binding:"required"`
	OrderNum    int     `json:"order_num" form:"order_num" binding:"required"`
	OrderPrice  float64 `json:"order_price" form:"order_price" binding:"required"`
	PayCType    int32   `json:"pay_c_type" form:"pay_c_type" binding:"required"`
	PayStatus   int32   `json:"pay_status" form:"pay_status" binding:"required"`
	OrderStatus int32   `json:"order_status" form:"order_status" binding:"required"`
}

// 获取订单详情
type GetOrderShow struct {
	Id      uint64 `json:"id" form:"id" binding:"required"`
	OrderNo string `json:"order_no" form:"order_no" binding:"required"`
}

// 修改订单信息
type UpdateOrder struct {
	Id          uint64  `json:"id" form:"id" binding:"required"`
	AddressId   int32   `json:"address_id" form:"address_id" binding:"required"`
	UserId      int32   `json:"user_id" form:"user_id" binding:"required"`
	GoodsId     int32   `json:"goods_id" form:"goods_id" binding:"required"`
	GoodsNum    int32   `json:"goods_num" form:"goods_num" binding:"required"`
	GoodsName   string  `json:"goods_name" form:"goods_name" binding:"required"`
	GoodsPrice  int64   `json:"goods_price" form:"goods_price" binding:"required"`
	OrderNum    int64   `json:"order_num" form:"order_num" binding:"required"`
	OrderPrice  float64 `json:"order_price" form:"order_price" binding:"required"`
	PayCType    int32   `json:"pay_c_type" form:"pay_c_type" binding:"required"`
	PayStatus   int32   `json:"pay_status" form:"pay_status" binding:"required"`
	OrderStatus int32   `json:"order_status" form:"order_status" binding:"required"`
}
